<%@ page pageEncoding="utf-8"%>

<%
	request.setCharacterEncoding("utf-8");
	String action = request.getParameter("action");
	//out.println(action);
	String userName = "";

	if (action != null && action.trim().equals("post")) {
		userName = request.getParameter("userName");
		String passWd = request.getParameter("passWd");

		//out.println(userName);
		//out.println(passWd);

		if (userName != null && userName.equals("admin")
				&& passWd != null && passWd.equals("admin")) {
			session.setAttribute("logined", "true");
			response.sendRedirect("./article.jsp");
		}
	}
%>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0076)https://www.oschina.net/home/login?goto_page=http%3A%2F%2Fwww.oschina.net%2F -->
<html lang="zh-CN" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link rel="shortcut icon" type="image/x-icon"
	href="https://www.oschina.net/img/favicon.ico?t=1423294220000" />
<title>登陆BBS后台</title>
<link rel="stylesheet" href="./sources/login/channel.css"
	type="text/css" media="screen" />
<link rel="stylesheet" type="text/css"
	href="./sources/login/jquery.fancybox-1.3.4.css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="最新开源项目"
	href="http://www.oschina.net/project/rss" />
<link rel="alternate" type="application/rss+xml" title="最新开源资讯"
	href="http://www.oschina.net/news/rss" />
<link rel="alternate" type="application/rss+xml" title="最新问题列表"
	href="http://www.oschina.net/question/rss" />
<link rel="alternate" type="application/rss+xml" title="最新翻译列表"
	href="http://www.oschina.net/translate/rss" />
<link rel="alternate" type="application/rss+xml" title="最新博客列表"
	href="http://www.oschina.net/blog/rss" />
<link rel="alternate" type="application/rss+xml" title="最新代码分享列表"
	href="http://www.oschina.net/code/rss" />
<link rel="alternate" type="application/rss+xml" title="开源中国 - 源码列表"
	href="http://www.oschina.net/code/source_rss" />
<!--添加emoji支持-->
<link rel="stylesheet" type="text/css" href="./sources/login/nature.css" />
<link rel="stylesheet" type="text/css" href="./sources/login/object.css" />
<link rel="stylesheet" type="text/css" href="./sources/login/people.css" />
<link rel="stylesheet" type="text/css" href="./sources/login/place.css" />
<link rel="stylesheet" type="text/css"
	href="./sources/login/Sysmbols.css" />
<link rel="stylesheet" type="text/css"
	href="./sources/login/twemoji.css" />

<style>
#OSC_Footer {
	border: 0;
}

#user_page {
	font-size: 10pt;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ddd;
	padding: 20px;
}

#user_page #form_user {
	float: left;
	width: 650px;
}

#user_page #form_user h2 {
	font-size: 16pt;
	font-weight: normal;
	color: #333;
	border-bottom: 2px solid #ddd;
	margin: 0 50px 0 0;
	padding-bottom: 10px;
}

#OSChinaLoginTip {
	clear: both;
	display: block;
	margin: 40px 0 20px 0;
	color: #060;
}

#OSChinaLoginTip ul {
	overflow: hidden;
	margin: 15px 0 0 0;
}

#OSChinaLoginTip ul li {
	float: left;
	width: 100px;
}

#OSChinaLoginTip ul li#openid_gmail img {
	margin-top: 8px;
}

#OSChinaLoginTip ul li#openid_yahoo img {
	margin-top: 15px;
}

#OSChinaLoginTip ul li#openid_msn img {
	
}

#OSChinaLoginTip ul li#openid_github img {
	margin-top: 8px;
}

#OSChinaLoginTip ul li#openid_sina img {
	margin-top: 8px;
}

#user_page #login_tip {
	float: right;
	width: 300px;
	font-size: 10.5pt;
	color: #666;
}

#user_page #login_tip h3 {
	margin: 30px 0 10px 0;
	font-size: 11pt;
}

#user_page #login_tip ol {
	font-size: 10pt;
	padding: 10px 5px;
	list-style-type: decimal;
	list-style-position: inside;
}

#user_page form th {
	font-size: 10.5pt;
	text-align: right;
	padding: 10px;
}

#user_page form td {
	vertical-align: middle;
}

#user_page form input.TEXT {
	font-size: 16px;
	padding: 3px;
	border: 1px solid #ccc;
}

#user_page form input.TEXT:focus {
	border: 1px solid #40AA53;
	outline: none;
}

#user_page form select {
	font-size: 16px;
	padding: 3px;
}

#user_page form input.BUTTON {
	font-size: 14px;
	padding: 0 5px;
	height: 30px;
}

#user_page form input.SUBMIT {
	font-weight: bold;
}
</style>


</head>
<body>

	<!-- Green Bar-->
	<div id="OSC_NavTop">
		<div class="wp998">
			<div class="clear"></div>
		</div>
	</div>
	<!-- Endof Grenn Bar -->



	<div id="OSC_Banner">
		<div class="wp998">
			<h1>会员系统</h1>
			<div class="clear"></div>
		</div>
	</div>
	<div id="OSC_Screen" />



	<div id="user_page">
		<form action="./login.jsp" method="post">
			<div>
				<h2 style="margin:5px; solid #080707;" id="login_h2">登录BBS后台</h2>
				<div style="clear:both;"></div>
			</div>

			<div style="float: left;" id="login_osc">
				<table>
					<tbody>
						<tr>
							<th>邮箱：</th>
							<td><input type="hidden" name="action" value="post" /> <input
								type="text" name="userName" class="TEXT" value="<%=userName%>"
								style="width:200px;" /></td>
						</tr>
						<tr>
							<th>登录密码：</th>
							<td><input type="password" name="passWd" class="TEXT"
								style="width:200px;" /></td>
						</tr>


						<tr>
							<th>&nbsp;</th>
							<td><input type="checkbox" name="save_login" value="1"
								checked="checked" /> 记住我的登录信息<span style="color:#A00;">（请勿在公用电脑或者网吧内使用此项）</span></td>
						</tr>

						<tr class="buttons">
							<th>&nbsp;</th>
							<td><input type="submit" value="现在登录 »"
								class="SUBMIT rndbutton" style="width:90px;" />&nbsp;&nbsp;&nbsp;&nbsp;
								<!-- <a href="">忘记登录密码？</a> --></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div id="login_tip">
				没有帐号？ <a href="">注册新会员</a>
				<h3>登录后可以？</h3>
				<ol>
					<li>进入bbs后台</li>
					<li>管理帖子</li>
					<li>审核内容</li>
					<li>删除违规帖子</li>
				</ol>
			</div>
			<div style="clear:both;"></div>
		</form>
	</div>

	<div class="clear"></div>

	<div id="OSC_Footer" class="CenterDiv">
		<table width="100%">
			<tbody>
				<tr>
					<td align="center">本页面来自开源中国社区</td>
				</tr>
			</tbody>
		</table>
	</div>
</body>
</html>